<!doctype html>
<html lang="zh">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Material Design for Bootstrap fonts and icons -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">

    <!-- Material Design for Bootstrap CSS -->
   {% load static %}
    <link rel="stylesheet" href="{% static 'feed/css/bootstrap-material-design.min.css' %}">


    <title>Login</title>
  </head>
  <body>
  <div class="container">
      <div class="card align-middle">
          <div class="card-body">
              <h2 class="card-title">Login to kFeeder</h2>

              <form method="post" action="{% url 'login_api' %}" >
                <div class="form-group">
                    <label for="username" class="bmd-label-floating">Username</label>
                    <input type="text" class="form-control" id="username" name="username" autocomplete="off">
                </div>
                <div class="form-group">
                    <label for="password" class="bmd-label-floating">Password</label>
                    <input type="password" class="form-control" name="password" id="password">
                </div>
                {% csrf_token %}
                <button type="submit" class="btn btn-primary btn-raised" id="btn-login">Login</button>
              </form>
          </div>
      </div>
  </div>




    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
   <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://unpkg.com/popper.js@1.12.6/dist/umd/popper.js" integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U" crossorigin="anonymous"></script>
<script src="{% static 'feed/js/bootstrap-material-design.min.js' %}"></script>
<script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"></script>
<script>$(document).ready(function() { $('body').bootstrapMaterialDesign(); });</script>

  {% block customjs %}{% endblock %}
  </body>
</html>
